
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<link rel=stylesheet href='include/hoj.css' type='text/css'>
</head>
<body>
<center>
<div style="width:90%; text-align:left">
<img src="image/logo.png"/>
</div>
<table width=96%> 
	<tr align="center" class='hd' valign="top">
				<th><a href="faqs.php">F.A.Qs</a></th>
		<th><a href="./bbs.php">Web Board</a></th>
		<th><a href="./">Home</a></th>
		<th><a href="./problemset.html">ProblemSet</a></th>
		<th><a href="./status.php">Status</a></th>
		<th><a href="./ranklist.php">Ranklist</a></th>
		<th><a href="./contest.php">Contest</a></th>
		<th><a href=loginpage.php>Login</a></th><th><a href=registerpage.php>Register</a></th>	</tr>
</table>
</center>
<center>
<div class="notice">
	<div>
		<B>Notice:</B>鉴于种种原因，本OJ自下周星期一（3月5号）开始不再全面开放，请各位做好善后事宜，谢谢合作。	</div>
</div>
</center>
</div>
<title>Problem 2281. -- [Sdoi2011]黑白棋 -- 衡阳八中OJ离线版-2012-02-29</title><center><h2>2281: [Sdoi2011]黑白棋</h2><span class=green>Time Limit: </span>3 Sec&nbsp;&nbsp;<span class=green>Memory Limit: </span>512 MB<br><span class=green>Submit: </span>15&nbsp;&nbsp;<span class=green>Solved: </span>6<br>[<a href='submitpage.php?id=2281'>Submit</a>][<a href='problemstatus.php?id=2281'>Status</a>][<a href='bbs.php?id=2281'>Discuss</a>]</center><h2>Description</h2><div class=content><div align="center"><b><span style="font-size: 22pt">黑白棋（</span></b><span style="font-size: 22pt; color: black">game</span><b><span style="font-size: 22pt">）</span></b></div>
<div style="margin: 13pt 0cm">【问题描述】</div>
<div><span style="font-size: 12pt">小</span><span style="font-size: 12pt">A</span><span style="font-size: 12pt">和小</span><span style="font-size: 12pt">B</span><span style="font-size: 12pt">又想到了一个新的游戏。</span></div>
<div><span style="font-size: 12pt">这个游戏是在一个</span><span style="font-size: 12pt">1*n</span><span style="font-size: 12pt">的棋盘上进行的，棋盘上有</span><span style="font-size: 12pt">k</span><span style="font-size: 12pt">个棋子，一半是黑色，一半是白色。</span></div>
<div><span style="font-size: 12pt">最左边是白色棋子，最右边是黑色棋子，相邻的棋子颜色不同。</span></div>
<div></div>
<div></div>
<div><span style="font-size: 12pt">E<img alt="" align="left" src="/JudgeOnline/upload/201104/1.bmp" /></span></div>
<div></div>
<div><span style="font-size: 12pt">小</span><span style="font-size: 12pt">A</span><span style="font-size: 12pt">可以移动白色棋子，小</span><span style="font-size: 12pt">B</span><span style="font-size: 12pt">可以移动黑色的棋子，他们每次操作可以移动</span><span style="font-size: 12pt">1</span><span style="font-size: 12pt">到</span><span style="font-size: 12pt">d</span><span style="font-size: 12pt">个棋子。</span></div>
<div><span style="font-size: 12pt">每当移动某一个棋子时，这个棋子不能跨越两边的棋子，当然也不可以出界。当谁不可以操作时，谁就失败了。</span></div>
<div><span style="font-size: 12pt">小</span><span style="font-size: 12pt">A</span><span style="font-size: 12pt">和小</span><span style="font-size: 12pt">B</span><span style="font-size: 12pt">轮流操作，现在小</span><span style="font-size: 12pt">A</span><span style="font-size: 12pt">先移动，有多少种初始棋子的布局会使他胜利呢？</span></div></div><h2>Input</h2><div class=content><div><span style="font-size: 12pt">共一行，三个数，</span><span style="font-size: 12pt">n,k,d</span><span style="font-size: 12pt">。</span></div></div><h2>Output</h2><div class=content><div style="margin: 13pt 0cm">&nbsp;</div>
<div><span style="font-size: 12pt">输出小</span><span style="font-size: 12pt">A</span><span style="font-size: 12pt">胜利的方案总数。答案对</span><span style="font-size: 12pt">1000000007</span><span style="font-size: 12pt">取模。</span></div></div><h2>Sample Input</h2>
			<div class=content><span class=sampledata>10 4 2<br />
</span></div><h2>Sample Output</h2>
			<div class=content><span class=sampledata>182<br />
【数据规模和约定】<br />
<br />
对于100%的数据，有1<=d<=k<=n<=10000, k为偶数，k<=100。</span></div><h2>HINT</h2>
			<div class=content><p></p></div><h2>Source</h2>
			<div class=content><p><a href='problemset.html?search=stage 2 day1'>stage 2 day1</a></p></div><center>[<a href='submitpage.php?id=2281'>Submit</a>][<a href='problemstatus.php?id=2281'>Status</a>][<a href='bbs.php?id=2281'>Discuss</a>]</center>﻿<br>

<a href="./"><span class=red>HOME</span></a>
<a href="javascript:history.go(-1)"><span class=red>Back</span></a>

<hr>
<center>
	<div class="footer">
			<a href=setlang.php?lang=ko>한국어</a>&nbsp;
		<a href=setlang.php?lang=cn>中文</a>&nbsp;
		<a href=setlang.php?lang=fa>فارسی</a>&nbsp;
		<a href=setlang.php?lang=en>English</a>&nbsp;
		<a href=setlang.php?lang=th>ไทย</a>
	<br>		<div>版权所有 &copy;2008-2012 WaterPark Organization. | <script src="http://s21.cnzz.com/stat.php?id=2982771&web_id=2982771" language="JavaScript"></script>
</div>
		<div>Based on opensource project <a href="http://hustoj.googlecode.com">hustoj</a>.</div>
	</div>
</center>
</body>
</html>
